<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>Document</title>
  </head>
  <body>
    <script>
      var age = prompt('请输入您的年龄');
      console.log(age)
      console.log(typeof age);
    </script>
  </body>
</html>